﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyExpiredCredits.ascx.cs" Inherits="Gollie.Controls.MyExpiredCredits" %>
<%@ Register Src="~/Controls/VendorPresenter.ascx" TagPrefix="uc1" TagName="VendorPresenter" %>

<div style="float: left;">
<p class="title">Mijn verlopen deals</p>
</div>
<div style="clear:both;"></div>
<span class="common" style="font-size: 1.2em;">Onderstaand overzicht toont de deals die tot één jaar geleden zijn verlopen.</span><br />
<br />
<hr />
<table style="width:100%; margin-top: 12px;">
    <tr>
        <td style="vertical-align:bottom;"><span>Zoek op naam:</span><br /><asp:DropDownList ID="ddlVendors" runat="server" AutoPostBack="true"/><asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/Images/search-icon2.png" Width="38" Height="24" style="margin-bottom:-5px;" OnClick="btnSearch_Click" ToolTip="Ververs"/></td>
		<td style="vertical-align:top;"><span>Uw totale voordeel: </span><asp:Label style="padding: 8px;" Font-Size="1.2em" Font-Bold="true" runat="server" ID="lblTotalProfit"></asp:Label></td>
    </tr>
</table>

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="0" ForeColor="#333333" GridLines="None"  HorizontalAlign="Center" ShowHeaderWhenEmpty="True" Width="100%" AllowSorting="True" OnSorting="GridView1_Sorting">
        <AlternatingRowStyle BackColor="White" ForeColor="#333333" />
        <Columns>
            <asp:TemplateField HeaderText="">
              <ItemTemplate>
                <asp:HiddenField ID="fldVendorId" runat="server" Value='<%#Eval("VendorId")%>' />
                <asp:HiddenField ID="fldBedrijfsnaam" runat="server" Value='<%#Eval("Bedrijfsnaam")%>' />
                <asp:HiddenField ID="fldWebsite" runat="server" Value='<%#Eval("Website")%>' />
                <asp:HiddenField ID="fldPlaats" runat="server" Value='<%#Eval("Plaats")%>' />
                <asp:HiddenField ID="fldStraat" runat="server" Value='<%#Eval("Straat")%>' />

             </ItemTemplate>
                <HeaderStyle CssClass="offer-grid-header-quick" />
                <ItemStyle CssClass="offer-grid-vendor" />
            </asp:TemplateField>

            <asp:HyperLinkField DataNavigateUrlFields="Website" DataTextField="Bedrijfsnaam" HeaderText="Aanbieder" Target="_blank" ControlStyle-CssClass="common" SortExpression="Bedrijfsnaam">
                <ControlStyle CssClass="common"></ControlStyle>

                <HeaderStyle CssClass="offer-grid-header-quick" />
                <ItemStyle CssClass="offer-grid-cell-quick" />
                </asp:HyperLinkField>

            <asp:BoundField DataField="PurchaseDate" HeaderText="Gekocht" DataFormatString="{0:dd-MMM-yyyy, HH:mm}" SortExpression="PurchaseDate">
            <HeaderStyle CssClass="offer-grid-header-quick" />
            <ItemStyle CssClass="offer-grid-cell-quick" />
            </asp:BoundField>

			<asp:BoundField DataField="ExpirationDate" HeaderText="Verlopen" DataFormatString="{0:dd-MMM-yyyy, HH:mm}" SortExpression="ExpirationDate">
            <HeaderStyle CssClass="offer-grid-header-quick" />
            <ItemStyle CssClass="offer-grid-cell-quick" />
            </asp:BoundField>

            <asp:BoundField DataField="Credit" HeaderText="Tegoed" DataFormatString="{0:c2}" SortExpression="Credit">
            <HeaderStyle CssClass="saldi-header-right" />
            <ItemStyle CssClass="saldi-cell-right" />
            </asp:BoundField>

            <asp:BoundField DataField="Cost" HeaderText="Prijs" DataFormatString="{0:c2}" SortExpression="Cost">
            <HeaderStyle CssClass="saldi-header-right" />
            <ItemStyle CssClass="saldi-cell-right" />
            </asp:BoundField>

            <asp:BoundField DataField="Spent" HeaderText="Verbruikt" DataFormatString="{0:c2}" SortExpression="Spent">
            <HeaderStyle CssClass="saldi-header-right" />
            <ItemStyle CssClass="saldi-cell-right" />
            </asp:BoundField>

            <asp:BoundField DataField="Profit" HeaderText="Voordeel" DataFormatString="{0:c2}" SortExpression="Profit">
            <HeaderStyle CssClass="saldi-header-right" />
            <ItemStyle CssClass="saldi-cell-right" />
            </asp:BoundField>
         </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#000000" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#000000" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="40"/>
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
